#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@file_name: accessing_the_event_loop.py
@date: 2025-07-28 17:01
@author: Falling Snow
@desc: 访问事件循环
"""

import asyncio

from util import delay


def call_later():
    print("我在Future中被调用了!")


async def main():
    # loop = asyncio.get_event_loop()
    loop = asyncio.get_running_loop()
    loop.call_soon(call_later)
    await delay(1)


if __name__ == '__main__':
    asyncio.run(main())
